//
//  SEGSettingDoorView.h
//  YYKitDemo
//
//  Created by 刘山 on 2017/11/9.
//  Copyright © 2017年 Sam. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SEGNewMyDoorListModel.h"

@protocol DoorSettingDelegate <NSObject>
@optional
-(void)seg_clickDoor:(SEGNewMyDoorListModel*)data AtIndex:(NSInteger)index;
@end


@interface SEGDoorSettingNameView : UIView
@property (nonatomic, strong)UILabel *nameLabel;
@property (nonatomic, strong)UIImageView *editImageView;
@property (nonatomic, strong)UIImageView *backImageView;
- (instancetype)initWithFrame:(CGRect)frame WithName:(NSString*)name WithType:(SEGEnumDoorSettingType)type;
@end

@interface SEGDoorSettingLayout : NSObject
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *desc;

@property (nonatomic, assign) CGFloat titleHeight;
@property (nonatomic, strong)SEGTextLayout *titleTextLayout;

@property (nonatomic, assign) CGFloat height;
@property (nonatomic, strong)NSArray<SEGNewMyDoorListModel*> *data;
- (instancetype)initWithData:(NSArray<SEGNewMyDoorListModel*>*)data WithTitle:(NSString *)title WithDesc:(NSString *)desc;
@end

@interface SEGSettingDoorView : UIView
-(void)setLayout:(SEGDoorSettingLayout*)layout canScroll:(BOOL)canScroll;
@property(nonatomic, weak) id<DoorSettingDelegate> delegate;
@end
